package com.freshcity.page.common
{
	import com.freshcity.common.SexIconRes;
	import com.freshcity.component.container.Component;
	
	import flash.display.DisplayObjectContainer;
	import flash.events.Event;
	
	public class SexIcon extends Component
	{
		private var back:SexIconRes;
		public function SexIcon(parent:DisplayObjectContainer=null, xpos:Number=0, ypos:Number=0)
		{
			super(parent, xpos, ypos);
		}
		
		override protected function addChildren():void
		{
			super.addChildren();
			back = new SexIconRes();
			addChild(back);
		}
		
		public function set data(value:String):void
		{
			back.gotoAndStop(value);
			this.toolTipData = (value=='female')?'女性':'男性';
		}
		
		override public function draw():void
		{
			// TODO Auto Generated method stub
			super.draw();
		}
		
		override public function hide(event:Event=null):void
		{
			// TODO Auto Generated method stub
			super.hide(event);
		}
		
		override public function show(event:Event=null):void
		{
			// TODO Auto Generated method stub
			super.show(event);
		}
		
		
	}
}